<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Home</title>
</head>
<body>
<span>提交信息</span>
<span style="color: red" th:text="${resultMsg.msg}">1</span>
<form action="#" th:action="@{/myGenerate/add}" method="post" th:object="${cgFormHead}">
    <table border="0">
        <tr>
            <td>表名</td>
            <td><input type="text" name="tableName" th:value="${cgFormHead.tableName}"><span style="color: red">*</span> 只能小写下划线</td>
        </tr>
        <tr>
            <td>模块包名</td>
            <td><input type="text" name="moduleName" th:value="${cgFormHead.moduleName}"><span style="color: red">*</span> 不能为空</td>
        </tr>
        <tr>
            <td>表描述:</td>
            <td><input type="text" name="content" th:value="${cgFormHead.content}"><span style="color: red">*</span> 不能为空</td>
        </tr>
        <tr>
            <td>JSON格式</td>
            <td>
               <span> [{name:"",text:"",type:"",length:22,isQuery:"Y"}]</span>
            </td>
        </tr>
        <tr>
            <td>字段规则JSON:</td>
            <td >
                <textarea type="text" name="dataJson" th:text="${cgFormHead.dataJson}" style="height: 500px;width: 800px"></textarea>
            </td>
        </tr>
    </table>

    <input type="submit" value="提交" style="width: 80px;">
</form>

</body>
</html>